﻿using System;
using System.Data;
using System.Data.Common;
using System.Collections.Generic;
using Runda.EShop.Common.Utility;

namespace Runda.EShop.Dal
{
    public partial class BizCustomerDal
    {
        public void UpdateCustomerPassword(Guid CustomerID, string Password)
        {
            string sql = "update Biz_Customer set Password=@Password where CustomerID=@CustomerID";

            DbCommand dbcommand = CurrentDatabase.GetSqlStringCommand(sql);
            CurrentDatabase.AddInParameter(dbcommand, "@Password", DbType.String, Password);
            CurrentDatabase.AddInParameter(dbcommand, "@CustomerID", DbType.Guid, CustomerID);

            CurrentDatabase.ExecuteNonQuery(dbcommand);
        }
    }
}
